#include<bits/stdc++.h>
#define int long long 
using namespace std;
const int Maxn = 110;
string s;
int h, w;
char a[Maxn][Maxn];
int ans[Maxn * Maxn];
signed main(){
	ios::sync_with_stdio(0);
	freopen("snake.in", "r", stdin);
	freopen("snake.out", "w", stdout);
	cin >> s;
	h = 100, w = 100;
	int n = s.size();
	int l = 1, r = 1;
	for(int i = 1 ; i <= 100 ; i++)
		for(int j = 1 ; j <= 100 ; j++)
			a[i][j] = 'R';
	for(int i = 0 ; i < n ; i++){
		a[l][r] = s[i];
		r++;
		if(r > 100) r = 1, l++;
	}
	cout << 100 << " " << 100 << '\n';
	for(int i = 1 ; i <= 100 ; i++){
		for(int j = 1 ; j <= 100 ; j++)
			cout << a[i][j];
		cout << '\n';
	}
	cout << "1 1" << '\n';
	for(int i = 1 ; i <= n ; i++){
		if(i % 100 == 0) cout << "D";
		else if(i % 200 <= 100) cout << "R";
		else cout << "L";
	}
	cerr << clock() * 1.0 / CLOCKS_PER_SEC << '\n';
	return 0;
}

